Merged
Conversation
JooKangsan
reviewed
Jan 23, 2025
Collaborator
JooKangsan
left a comment
There was a problem hiding this comment.
수고하셨어요!! 다음주도 화아팅입니다!
JooKangsan
approved these changes
Jan 23, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 푼 문제
순서쌍의 개수 | https://school.programmers.co.kr/learn/courses/30/lessons/120836
점의 위치 구하기 | https://school.programmers.co.kr/learn/courses/30/lessons/120841
로그인 성공? | https://school.programmers.co.kr/learn/courses/30/lessons/120883
특이한 정렬 | https://school.programmers.co.kr/learn/courses/30/lessons/120880
카드 뭉치 | https://school.programmers.co.kr/learn/courses/30/lessons/159994
공원 산책 | https://school.programmers.co.kr/learn/courses/30/lessons/172928
햄버거 만들기 | https://school.programmers.co.kr/learn/courses/30/lessons/133502
📝 간단한 풀이 과정
카드 뭉치
카드 더미의 첫번째 값과 목표값 전체를 비교합니다.
일치할 경우 카드 더미의 첫번째 값을 꺼내고, 일치하는 카드가 두 더미 모두에 없을 경우 종료합니다.
공원 산책
pathArr는 걸어간 좌표를 저장하는 배열입니다.
첫번째 반복문에서는 S를 찾아 pathArr의 첫번째 요소로 집어넣습니다.
두번째 반복문에서는 루트에 따라 걸음을 수행합니다.
걸어가는 방향에 따라 제일 첫번째 마주칠 수 있는 블럭의 포지션을 찾아 저장하고,
걸음을 수행하려했을 때 블럭과 충돌한다면 다음 루트로 넘어갑니다.
문제가 없을 경우 pathArr에 좌표를 저장하고 걸음을 수행합니다.
햄버거 만들기
재료배열이 [1,2,3,1]의 배열을 가질 때 해당 배열을 삭제하고, 만든 햄버거의 개수를 증가시킵니다.
4개의 요소를 탐색했으므로 인덱스는 4만큼만 삭제시키고 다시 검색합니다.